﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace AccountingModel.Schema
{
    public class ModelFactory
    {
        public static AccountingDBEntities getInstance()
        {
            //System.Configuration.ConnectionStringSettings conStr = System.Configuration.ConfigurationManager.ConnectionStrings["AccountingModelContainer"];
            //System.Data.EntityClient.EntityConnectionStringBuilder builder = new System.Data.EntityClient.EntityConnectionStringBuilder(conStr.ConnectionString);
            //string assPath = AppDomain.CurrentDomain.BaseDirectory;
            //builder.Metadata = assPath+"bin\\Schema\\";// +"AccountingModel.csdl|" + assPath + "AccountingModel.msl|" + assPath + "AccountingModel.ssdl";
            return new AccountingDBEntities();
        }
    }
}